package model;

import java.util.Observable;

public class QR extends Observable
{

	private Machine machine;
	private String value;
	
	private int X;
	private int Y;

	public void setCoords(int x, int y)
	{
		X = x;
		Y = y;
		//int[] a = {X,Y};
		//notifyObservers(a);
	}
	
	public int getX()
	{
		return X;
	}
	
	public int getY()
	{
		return Y;
	}

	public Machine getMachine()
	{
		return machine;
	}

	public void setMachine(Machine machine) 
	{
		if(this.machine == null)
		{
			this.machine = machine;
			//notifyObservers(machine);
		}
	}

	public String getValue() 
	{
		return value;
	}

	public void setValue(String value) 
	{
		this.value = value;
	}
	
	@Override
	public void notifyObservers(Object data) {
		// TODO Auto-generated method stub
		super.notifyObservers(data);
	}
	
	@Override
	protected void setChanged() {
		// TODO Auto-generated method stub
		super.setChanged();
	}
	
	
}
